import { _decorator, Component, Prefab } from 'cc';
import { gameConst } from './GameConst';
import { gameManager } from './GameManager';
import { GlobelPrefab } from './GlobelPrefab';
const { ccclass, property } = _decorator;

@ccclass('Main')
export class Main extends Component {
    start() {
        gameConst.globelPrefab = this.node.getComponent(GlobelPrefab);
        this.init();
    }

    // update(deltaTime: number) {
        
    // }

    private init() {
        gameManager.init(this.node);
    }
}


